package info.wf0913.blogger_service.service.imp;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import info.wf0913.blogger_core.service.imp.BaseServiceImp;
import info.wf0913.blogger_service.bean.Label;
import info.wf0913.blogger_service.service.LabelService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabelServiceImp extends BaseServiceImp<Label> implements LabelService {
    /**
     * 查询该文章所有标签
     * @param id
     * @return
     */
    @Override
    public Label selectOne(Integer id) {
        QueryWrapper<Label> wrapper = new QueryWrapper<>();
        wrapper.eq("id",id);
        return getBaseMapper().selectOne(wrapper);
    }
}
